package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 活动奖项对象 buz_task_awards
 * 
 * @author ruoyi
 * @date 2023-08-27
 */
@Data
public class BuzTaskAwardsJackpot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 活动ID */
    @Excel(name = "活动ID")
    private String buzTaskId;

    @Excel(name = "活动奖项ID")
    private String buzTaskAwardsId;

    /** 奖项等级 */
    @Excel(name = "奖项等级")
    private String awardsLevel;

    /** 奖项名称 */
    @Excel(name = "奖项名称")
    private String awardName;

    @Excel(name = "活动用户ID")
    private String buzTaskUserId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "中奖时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date awardTime;
    
    private Integer awards;
    
    

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buzTaskId", getBuzTaskId())
            .append("buzTaskAwardsId", getBuzTaskAwardsId())
            .append("awardsLevel", getAwardsLevel())
            .append("awardName", getAwardName())
            .append("buzTaskUserId",getBuzTaskUserId())
            .append("awardTime",getAwardTime())
            .toString();
    }
}
